
public class ProgressGUI {

   public static final String[] stages = { "Work", "Break", "Vote" };

   public static final int WORK_STAGE = 1;
   public static final int BREAK_STAGE = 2;
   public static final int VOTE_STAGE = 3;

   protected int workTimeMin = 0;
   protected int breakTimeMin = 0;
   protected int voteTimeMin = 0;

   protected int currentStage = 0;
   protected int progress = 0;

   public ProgressGUI( int workTimeMin, int breakTimeMin, int voteTimeMin ) {
      this.workTimeMin = workTimeMin;
      this.breakTimeMin = breakTimeMin;
      this.voteTimeMin = voteTimeMin;
   }

   public void setProgress( int stage, int progress ) {
      this.currentStage = stage;
      this.progress = progress;
   }

   public void incrementProgress() {
      this.progress++;
      setProgress( this.currentStage, this.progress );
   }

}
